home *** CD-ROM | disk | FTP | other *** search
/ Clickx 22 / Clickx 22.iso / DATA / Setup.exe / ForceASPI / DUMPASPI.BAT next >
Encoding:
DOS Batch File  |  2000-09-03  |  2.6 KB  |  87 lines

  1. @Echo off
  2. SET ver=1.7
  3. IF %OS%==Windows_NT Goto WinNT
  4.  
  5. :Win9x
  6. CLS
  7. Echo DumpASPI %ver%
  8. Echo.
  9. Echo Windows 9x or ME Detected.
  10. Echo Windows is in : %winbootdir%
  11. Echo Dumping Files...
  12. IF NOT EXIST Win9xDUMP\frcASPI.txt md Win9xDUMP
  13. Echo DO NOT DELETE! This is dummy file created by frcASPI for Dump/Restore validation > Win9xDUMP\frcASPI.txt
  14.  
  15. Echo   * WINASPI.DLL
  16. IF EXIST %winbootdir%\system\winaspi.dll copy %winbootdir%\system\winaspi.dll Win9xDUMP > nul
  17. IF NOT EXIST %winbootdir%\system\winaspi.dll Echo     [ file does not exist, backup not possible ]
  18.  
  19. Echo   * WNASPI32.DLL
  20. IF EXIST %winbootdir%\system\wnaspi32.dll copy %winbootdir%\system\wnaspi32.dll Win9xDUMP > nul
  21. IF NOT EXIST %winbootdir%\system\wnaspi32.dll Echo     [ file does not exist, backup not possible ]
  22.  
  23. Echo   * ASPIENUM.VXD
  24. IF EXIST %winbootdir%\system\aspienum.vxd copy %winbootdir%\system\aspienum.vxd Win9xDUMP > nul
  25. IF NOT EXIST %winbootdir%\system\aspienum.vxd Echo     [ file does not exist, backup not possible ]
  26.  
  27. Echo   * APIX.VXD
  28. IF EXIST %winbootdir%\system\iosubsys\apix.vxd copy %winbootdir%\system\iosubsys\apix.vxd Win9xDUMP > nul
  29. IF NOT EXIST %winbootdir%\system\iosubsys\apix.vxd Echo     [ file does not exist, backup not possible ]
  30.  
  31. Echo Done!
  32. Echo.
  33. Echo Current ASPI Layer is Dumped.
  34. Goto End
  35.  
  36. :WinNT
  37. CLS
  38. Echo DumpASPI %ver%
  39. Echo.
  40. Echo Windows NT or 2000 Detected.
  41. Echo Windows is in : %windir%
  42. Echo Dumping Files...
  43. IF %PROCESSOR_ARCHITECTURE%==x86 Goto Intel
  44. Goto Alpha
  45.  
  46. :Intel
  47. IF NOT EXIST WinNTDUMP\frcASPI.txt md WinNTDUMP
  48. Echo DO NOT DELETE! This is dummy file created by frcASPI for Dump/Restore validation > WinNTDUMP\frcASPI.txt
  49. Echo  * WINASPI.DLL
  50. IF EXIST %windir%\system\winaspi.dll (
  51.   copy %windir%\system\winaspi.dll WinNTDUMP > nul
  52. ) ELSE (
  53.   Echo    [ file does not exist, backup not possible ]
  54. )
  55. Echo  * WOWPOST.EXE
  56. IF EXIST %windir%\system\wowpost.exe (
  57.   copy %windir%\system\wowpost.exe WinNTDUMP > nul
  58. ) ELSE (
  59.   Echo    [ file does not exist, backup not possible ]
  60. )
  61. Echo  * WNASPI32.DLL
  62. IF EXIST %windir%\system32\wnaspi32.dll (
  63.   copy %windir%\system32\wnaspi32.dll WinNTDUMP > nul
  64. ) ELSE (
  65.   Echo    [ file does not exist, backup not possible ]
  66. )
  67. Echo  * ASPI32.DLL
  68. IF EXIST %windir%\system32\drivers\aspi32.sys (
  69.   copy %windir%\system32\drivers\aspi32.sys WinNTDUMP > nul
  70. ) ELSE (
  71.   Echo    [ file does not exist, backup not possible ]
  72. )
  73. Echo Done!
  74. Echo.
  75. Echo Current ASPI Layer is Dumped.
  76. Goto End
  77.  
  78. :Alpha
  79. Echo Alpha CPU Detected.
  80. Echo Sorry, only Intel x86 and compatible platforms are supported.
  81. Goto End
  82.  
  83. :End
  84. SET ver=
  85. pause
  86. exit
  87.